package demo;

import java.util.function.IntPredicate;

/**
 * IntPredicate
 *
 * @author dingwen
 * @date 2022/03/23
 */
public class IntPredicateDemo {


    public static void main(String[] args) {
        IntPredicate evenNumberPredicate = x -> x % 2 == 0;
        IntPredicate oddNumberPredicate = x -> x % 3 == 0;
        boolean test = evenNumberPredicate.test(10);
        boolean test1 = evenNumberPredicate.and(oddNumberPredicate).negate().test(10);
    }
}
